# Maintainer: Willow Barraco <contact@willowbarraco.fr>
pkgname=harsh
pkgver=0.8.31
pkgrel=2
pkgdesc="Habit tracking for geeks"
url="https://github.com/wakatara/harsh"
arch="all"
license="MIT"
makedepends="go"
source="$pkgname-$pkgver.tar.gz::https://github.com/wakatara/harsh/archive/refs/tags/v$pkgver.tar.gz"
options="!check" # no test suite

build() {
	go build -v -ldflags="-X main.version=$pkgver" -o harsh .
}

package() {
	install -Dm0755 harsh "$pkgdir"/usr/bin/harsh
}

sha512sums="
40823cdc01003e6e1bee3660f64824a25a14121a9d4d78b2de7c64e266661cb7efd2a8443892da3483afa92369db8aa341ceece2523a70159fdbac2189ff2f49  harsh-0.8.31.tar.gz
"
